﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace BTL
{
    public partial class frmHelp : Form
    {
        public frmHelp()
        {
            InitializeComponent();
        }

        private void frmHelp_Load(object sender, EventArgs e)
        {
        }

        private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            switch (e.Node.Name)
            {
                case "NThemnv":
                    webBrowser1.Navigate(@"C:\Users\LeXuan\Desktop\BTL\BanSach\BTL\Helps\themnv.mht");
                    break;
                case "NSuanv":
                    webBrowser1.Navigate(@"C:\Users\LeXuan\Desktop\BTL\BanSach\BTL\Helps\suanv.mht");
                    break;
                case "NXoanv":
                    webBrowser1.Navigate(@"C:\Users\LeXuan\Desktop\BTL\BanSach\BTL\Helps\xoanv.mht");
                    break;
                case "NTimkiemnv":
                    webBrowser1.Navigate(@"C:\Users\LeXuan\Desktop\BTL\BanSach\BTL\Helps\timkiemnv.mht");
                    break;
                case "NThemdg":
                    webBrowser1.Navigate(@"C:\Users\LeXuan\Desktop\BTL\BanSach\BTL\Helps\themdg.mht");
                    break;
                case "NSuadg":
                    webBrowser1.Navigate(@"C:\Users\LeXuan\Desktop\BTL\BanSach\BTL\Helps\suadg.mht");
                    break;
                case "NXoadg":
                    webBrowser1.Navigate(@"C:\Users\LeXuan\Desktop\BTL\BanSach\BTL\Helps\xoadg.mht");
                    break;
                case "NTimkiemdg":
                    webBrowser1.Navigate(@"C:\Users\LeXuan\Desktop\BTL\BanSach\BTL\Helps\timkiemdg.mht");
                    break;
                case "NThemhd":
                    webBrowser1.Navigate(@"C:\Users\LeXuan\Desktop\BTL\BanSach\BTL\Helps\themhd.mht");
                    break;
                case "NSuahd":
                    webBrowser1.Navigate(@"C:\Users\LeXuan\Desktop\BTL\BanSach\BTL\Helps\suahd.mht");
                    break;
                case "NXoahd":
                    webBrowser1.Navigate(@"C:\Users\LeXuan\Desktop\BTL\BanSach\BTL\Helps\xoahd.mht");
                    break;
                case "NTimkiemhd":
                    webBrowser1.Navigate(@"C:\Users\LeXuan\Desktop\BTL\BanSach\BTL\Helps\timkiemhd.mht");
                    break;
                default:
                    break;
            }    
        }

        private void frmHelp_KeyDown(object sender, KeyEventArgs e)
        {
            
        }

       
    }
}
